/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package cz.worsik.android.test.rideshare.util.listener;

import android.view.View;
import android.widget.TabHost;

public class TabViewChangeListener implements View.OnClickListener
	{
		public int index;

		public TabViewChangeListener(int index) {
			this.index = index;
		}
		
		public void onClick(View v) 
		{
			TabHost tabHost = (TabHost) v.getParent();
            tabHost.setCurrentTab(index);
		}
	}
